<?php
class Output_dto extends Base_dto
{
	// Atributos
	var $name;
	var $idOutcome = 0;
	
	private $objOutcome = NULL;
	public function getObjOutcome()
	{
		if ($this->objOutcome == NULL) {
			$this->_loadOutcomeModels();
			
			if($this->idOutcome != 0) $this->objOutcome = $this->Outcome_dao->obtenerObjetoPorID($this->idOutcome);
			else $this->objOutcome = new Outcome_dto();
		}
		
		return $this->objOutcome;
	}
	
	private function _loadOutcomeModels()
	{
		$this->load->model('Outcome_dao', 'Outcome_dao');
		$this->load->model('Outcome_dto', 'Outcome_dto');
	}
	
	function __construct()
    {
		parent::__construct();
	}
}